import { type ReactNode } from "react";
import { useNavigate } from "react-router";
import { NavigationContext } from "../common/context";


export default function NavigationProvider ({ children }: { children: ReactNode }) {
  const navigate = useNavigate()

  return (
    <NavigationContext.Provider value={navigate}>
      { children }
    </NavigationContext.Provider>
  )
}
